﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CreateStaticHtml.Models
{
    /// 左侧菜单
    /// </summary>
    public class TreeNode
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }


        /// <summary>
        /// 菜单名称
        /// </summary>
        public string NodeName { get; set; }


        /// <summary>
        /// 父级菜单
        /// </summary>
        public int TreeNodeId { get; set; }

        /// <summary>
        /// 相关父级菜单
        /// </summary>
        public virtual TreeNode VTreeNode { get; set; }


        /// <summary>
        /// 页面文件路径
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 相伴产品编号
        /// </summary>
        public int ProductId { get; set; }

        /// <summary>
        /// 相关相伴产品
        /// </summary>
        public virtual Product VProduct { get; set; }

        /// <summary>
        /// 英文名称，用于在浏览器上面访问
        /// </summary>
        public string EName { get; set; }


        public TreeNode()
        {
            this.Id = int.MinValue;
            this.TreeNodeId = int.MinValue;
            this.ProductId = int.MinValue;
        }
    }
}
